Will be used by the QA scripts, since we need to inspect the kernel
configuration and generate a correct grub conf from that, rather than
trying to have update-bootloader reuse an existing config, since there
won't be one initially.
char *osname;
} OtAdminUpdateKernel;
+static gboolean opt_no_bootloader;
+
static GOptionEntry options[] = {
+ { "no-bootloader", 0, 0, G_OPTION_ARG_NONE, &opt_no_bootloader, "Don't update bootloader", NULL },
{ NULL }
};
if (!update_initramfs (self, cancellable, error))
goto out;
- if (!update_grub (self, cancellable, error))
- goto out;
+ if (!opt_no_bootloader)
+ {
+ if (!update_grub (self, cancellable, error))
+ goto out;
+ }
ret = TRUE;
out: